<?php
if($_SERVER['REQUEST_METHOD'] == "POST") {
	if($_POST['pass'] == "koetjeboe") {
		
		if($_POST['rebuild'] == "on") {
			echo 'test';
			echo exec('/home/ftp10123/radio/sc_trans/playlist.sh');
			}
		if($_POST['start'] == "on") {
			echo 'test';
			echo exec('/home/ftp10123/radio/sc_trans/start.sh');
			}
		if($_POST['stop'] == "on") {
			echo 'test';
			echo exec('/home/ftp10123/radio/sc_trans/stop.sh');
			}
		if($_POST['kill'] == "on") {
			echo 'test';
			echo exec('killall sc_trans_linux');
			}
	
} else {
echo 'Wrong password';
}
}else{ 
?>
<form action="beheer.php" method="POST">
<input type=radio name=menu />Playlist rebuilden<br>
<input type=radio name=menu />Start de on-demand<br>
<input type=radio name=menu />Stop de on-demand<br>
<input type=radio name= /><b>KILL</b> de on-demand<br>Wachtwoord:
<input type=password name=pass />
<input type=submit />
</form>
<?php
}
?>